package net.danielseidl.ludumdare.ld48.tile;

import java.awt.image.BufferedImage;

/**
 * Stores all data being part of a tile used in a map. This includes the associated set, 
 * the given name and the image associated to the tile.
 *
 * @author    Daniel Seidl - info@daniel-seidl.net
 */
public class Tile
	{
	private String set;
	private String name;
	private BufferedImage image;
		
	/**
	 * Constructor for creating a new usable tile.
	 * @param set The tile set of the tile.
	 * @param name The name of the tile.
	 * @param image The image associated to the tile.
	 */
	public Tile(String set, String name, BufferedImage image)
		{
		this.set = set;
		this.name = name;
		this.image = image;
		}
	
	/**
	 * Returns the set of this tile.
	 * @return The set of this tile.
	 */
	public String getSet()
		{
		return this.set;
		}	
	
	/**
	 * Returns the given name of this tile.
	 * @return The name of this tile.
	 */
	public String getName()
		{
		return this.name;
		}
	
	/**
	 * Returns the BufferedImage associated to this tile.
	 * @return The image of this tile.
	 */
	public BufferedImage getImage()
		{
		return this.image;
		}
	}